package com.cxh.rmsq.ui.activity.self;



import androidx.appcompat.app.AppCompatActivity;

import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.os.Bundle;
import android.util.Log;

import com.amap.api.maps.AMap;
import com.amap.api.maps.MapView;
import com.cxh.rmsq.R;
import com.youth.banner.Banner;


public class TestActivity extends AppCompatActivity {

    private AMap aMap;
    private MapView mapview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        Banner banner = findViewById(R.id.banner);

         mapview = findViewById(R.id.mapview);
        mapview.onCreate(savedInstanceState);


        aMap = mapview.getMap();
        aMap.setMapType(AMap.MAP_TYPE_NORMAL);
        aMap.getUiSettings().setLogoBottomMargin(100);
        aMap.getUiSettings().setLogoCenter(500,500);
        // 移除缩放控件
//        aMap.getUiSettings().isZoomControlsEnabled = false
//        // 禁止手势缩放
//        aMap.get.isZoomGesturesEnabled = false
    }

    @Override
    protected void onResume() {
        super.onResume();
        mapview.onResume();
    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
        mapview.onDestroy(); // 销毁MapView对象，释放资源
    }

}